package com.ezops.dto;

import com.ezops.models.ClientEzopsFieldMappingModel;
import com.fasterxml.jackson.annotation.JsonIgnore;

public class MappingModel {
	private int clientFieldId;
	
	private String clientFieldName;
	private String ezopsFieldName;
	private int ezopsFieldId;
	

	public int getEzopsFieldId() {
		return ezopsFieldId;
	}
	public void setEzopsFieldId(int ezopsFieldId) {
		this.ezopsFieldId = ezopsFieldId;
	}
	
	public int getClientFieldId() {
		return clientFieldId;
	}
	public void setClientFieldId(int clientFieldId) {
		this.clientFieldId = clientFieldId;
	}
	@JsonIgnore
	public String getClientFieldName() {
		return clientFieldName;
	}
	@JsonIgnore
	public void setClientFieldName(String clientFieldName) {
		this.clientFieldName = clientFieldName;
	}
	@JsonIgnore
	public String getEzopsFieldName() {
		return ezopsFieldName;
	}
	@JsonIgnore
	public void setEzopsFieldName(String ezopsFieldName) {
		this.ezopsFieldName = ezopsFieldName;
	}
	@JsonIgnore	
	public ClientEzopsFieldMappingModel adaptTo(){
		ClientEzopsFieldMappingModel model = new ClientEzopsFieldMappingModel();
		model.setId(this.clientFieldId);
		model.setEzopsFieldId(this.ezopsFieldId);
		return model;
	}

}
